package com.xgq.drink.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户地址实体类
 * </p>
 *
 * @author xgq
 * @since 2025-02-23
 */
@Getter
@Setter
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "address_id", type = IdType.AUTO)
    private Long addressId; // 数据库字段是 bigint，这里改为 Long

    private Long userId;

    private String recipientName; // 数据库字段是 recipient_name，调整字段名

    private String recipientPhone; // 数据库字段是 recipient_phone，调整字段名

    private String addressDetail; // 数据库字段是 address_detail，调整字段名

    private Byte isDefault;

    private LocalDateTime createdAt; // 数据库字段是 created_at，调整字段名

    private LocalDateTime updatedAt; // 数据库字段是 updated_at，调整字段名

    private Integer isDel;
}